﻿namespace YidanSoft.Library.EditorUtility.CommandBars
{
    using System;
    using System.Windows.Forms;

    public class CommandBarMenu : ContextMenu
    {
        private Menu selectedMenuItem;

        public CommandBarMenu(MenuItem[] items) : base(items)
        {
            this.selectedMenuItem = null;
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            return base.ProcessCmdKey(ref msg, keyData);
        }

        internal Menu SelectedMenuItem
        {
            get
            {
                return this.selectedMenuItem;
            }
            set
            {
                this.selectedMenuItem = value;
            }
        }
    }
}

